from masoniteorm.schema import Schema
from masoniteorm.relationships import belongs_to, has_many

from application.config import appSettings
from application.config.database import DB
from ..base import BaseModel


class ExAppBrand(BaseModel):
    __table__ = 'ex_app_brands'

    @belongs_to('brand_id', 'brand_id')
    def brand(self):
        from .Company import Company
        return Company

    @belongs_to('app_slug', 'slug')
    def app(self):
        from .ExApp import ExApp
        return ExApp
